#define FRAME_BUFFER_SIZE 127
#define ACK_BUFFER_SIZE 3
#define TIMEOUT_WAIT_ACK 25000 // cyclen
#define ACK_MSG_SIZE 3

#define ACK_FRAME_RECEIVED 0xFA
#define NACK_FRAME_RECEIVED 0xF0
#define ACK_FRAME_TIMEOUT 0xFB

unsigned char send_frame(unsigned char* data, uint8_t bytes_received);
unsigned char receive_frame(unsigned char* data, uint8_t* bytes_to_send);


